﻿using ChurchDiary.BLL;
using ChurchDiary.Common;
using ChurchWebsite.Controllers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ChurchWebsite.Areas.Dashboard.Controllers
{
    public class ChurchController : BaseController
    {
        public ActionResult Index()
        {
            return View();
        }
        public JsonResult GetChurchDashboard()
        {
            return Json(new BLL_Dashboard().GetChurchDashboard(),JsonRequestBehavior.AllowGet);
        }
        public JsonResult GetChurchBirthDay()
        {
            return Json(new BLL_Member().GetBirthDayList(), JsonRequestBehavior.AllowGet);
        }
    }
}
